<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    document.write('<h1>本次打折的商品有:</h1>');
    var arr1 = new Array();
 
    arr1[0] = 'NIKE背包';
    arr1[1] = 'Adidas运动衫';
    arr1[2] = '李宁运动鞋';
    arr1[3] = 'Kappa外套';
    arr1[4] = '361度腰包';
    for(var i = 0; i < arr1.length; i++){
        console.log (arr1[i]);
    }
</script>

</html>